package com.example.sharingjdbc4digiwin.controller;

import com.example.sharingjdbc4digiwin.entity.SysUser;
import com.example.sharingjdbc4digiwin.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author yanggld
 * @Date 2019/6/24-9:29
 * @Description
 */
@RequestMapping("/sys/user")
@RestController
public class SysUserController {

	@Autowired
	private SysUserMapper sysUserMapper;

	@GetMapping("/list")
	public List<SysUser> list(){
		List<SysUser> list = sysUserMapper.list();
		return list;
	}
}
